@extends('host.common.common')

@section('head')
    @if(Auth::user()->class == 1)
    <script>
        var USER_COMM_DATA = {
            leftNavObj : [{
                title : "供求管理",
                menuItems : [{
                    href_val : "{{ route('account.offer.create') }}",
                    lbl_txt : "发布供应报盘",
                }, {
                    href_val : "{{ route('account.offer.index') }}",
                    lbl_txt : "管理供应报盘",
                }, {
                    href_val : "{{ route('account.counter-offer.index') }}",
                    lbl_txt : "还盘意向单",
                }
                ]
            },
                {
                    title : "分销管理",
                    menuItems : [{
                        href_val : "{{ route('account.provider.order.index') }}",
                        lbl_txt : "订单管理",
                    }, {
                        href_val : "{{ route('account.my-purchaser.index') }}",
                        lbl_txt : "我的采购商",
                    }, {
                        href_val : "{{ route('account.member.authorization.request.index') }}",
                        lbl_txt : "审批采购商",
                    }, {
                        href_val : "{{ route('account.price-strategy.index') }}",
                        lbl_txt : "价格策略组",
                    }, {
                        href_val : "{{ route('account.distribution-system-relationship.index') }}",
                        lbl_txt : "分销关系管理",
                    }, {
                        href_val : "{{ route('account.provider.return-management.index') }}",
                        lbl_txt : "退换货管理",
                    }, {
                        href_val : "{{ route('account.issue.index') }}",
                        lbl_txt : "咨询管理",
                    }
                    ]
                },
                {
                    title : "店铺管理",
                    menuItems : [{
                        href_val : "{{ route('account.goods.index') }}",
                        lbl_txt : "商品管理",
                    }, {
                        href_val : "{{ route('account.category.index') }}",
                        lbl_txt : "分类管理",
                    }, {
                        href_val : "{{ route('account.store-navigation.index') }}",
                        lbl_txt : "导航设置",
                    },
                    ]
                },
                {
                    title : "账户中心",
                    menuItems : [{
                        href_val : "{{ route('account.member.home') }}",
                        lbl_txt : "账户首页",
                    }, {
                        href_val : "{{ route('account.provider.company') }}",
                        lbl_txt : "公司资料",
                    }, {
                        href_val : "{{ route('account.settlement-management.index') }}",
                        lbl_txt : "结算管理",
                    }, {
                        href_val : "{{ route('account.message') }}",
                        lbl_txt : "短消息",
                    }
                    ]
                }
            ]
        };
    </script>
    @else
        <script>
            var USER_COMM_DATA = {
                leftNavObj : [{
                    title : "供求管理",
                    menuItems : [{
                        href_val : "{{ route('account.enquiry.create') }}",
                        lbl_txt : "发布采购询盘",
                    }, {
                        href_val : "{{ route('account.enquiry.index') }}",
                        lbl_txt : "管理采购询盘",
                    }, {
                        href_val : "{{ route('account.counter-enquiry.index') }}",
                        lbl_txt : "采购意向单",
                    }
                    ]
                },
                    {
                        title : "分销管理",
                        menuItems : [{
                            href_val : "{{ route('account.purchaser.order.index') }}",
                            lbl_txt : "订单管理",
                        }, {
                            href_val : "{{ route('account.purchaser.my-authorization-request.index') }}",
                            lbl_txt : "我的申请",
                        }, {
                            href_val : "{{ route('account.my-provider.index') }}",
                            lbl_txt : "我的供应商",
                        }, {
                            href_val : "{{ route('account.my-goods.index') }}",
                            lbl_txt : "我的商品",
                        }, {
                            href_val : "{{ route('account.my-issue.index') }}",
                            lbl_txt : "我的咨询",
                        }, {
                            href_val : "{{ route('account.purchaser.return-management.index') }}",
                            lbl_txt : "退换货记录"
                        }
                        ]
                    },
                    {
                        title : "账户中心",
                        menuItems : [{
                            href_val : "{{ route('account.member.home') }}",
                            lbl_txt : "账户首页",
                        }, {
                            href_val : "{{ route('account.purchaser.company') }}",
                            lbl_txt : "公司资料",
                        }, {
                            href_val : "{{ route('account.address.index') }}",
                            lbl_txt : "地址管理",
                        }, {
                            href_val : "{{ route('account.invoice-management.index') }}",
                            lbl_txt : "发票管理"
                        }, {
                            href_val : "{{ route('account.message') }}",
                            lbl_txt : "短消息",
                        }
                        ]
                    }
                ]
            };
        </script>
    @endif
    @yield('c-head')
@stop
